package recycleTest 
{
	import com.greensock.TweenLite;
	import flash.display.MovieClip;
	import util.boyaa.processManager.AbstractProcessPackage;
	
	/**
	 * ...
	 * @author henrylee   Any question, pls contact me.	henrylee_sz@qq.com
	 */
	public class TestProcess extends AbstractProcessPackage
	{
		
		public function TestProcess() 
		{
			super();
			
		}
		
		override protected function initAbility():void
		{
			ABILITY = new Vector.<Object>();
			ABILITY[0] = { 'key':"comattack",       'duration':0.2,       'process':doProcess };
			ABILITY[1] = { 'key':"others",          'duration':0.2,       'process':doProcess };
		}
		
		
		override protected function doProcess(params: Object):void
		{
			if (int(params) == 1)
			{
				exMC.push(new MovieClip());
				tweens.push(TweenLite.to(exMC[0], 0.1, { x:100, y:100 } ));
				tweens.push(TweenLite.delayedCall(1, doAIPackage));
			}
			else
				doAIPackage();
		}
		
		
		public function profile(): int
		{
			return exMC.length + tweens.length + subProcess.length;
		}
		
	}

}